//
//  KDefferedBlockQueue.h
//  MengLiao
//
//  Created by xiuxin on 2022/7/15.
//  Copyright © 2022 ZHBen. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface KDefferedBlockQueue : NSOperationQueue
//是否空闲
@property (readonly,getter=isFree) BOOL free;
//强制主线程
@property (nonatomic) BOOL forceMainThread;
//最小间隔时长
@property (nonatomic) NSTimeInterval minimumInterval;
//等待后续时长
@property (nonatomic) NSTimeInterval waitNextDuration;
//完成回调
@property (copy,nonatomic) dispatch_block_t completion;

- (void)addBlock:(dispatch_block_t)block;

- (void)flush;

@end
